package io.api.modules.project.service;

import io.admin.common.page.PageData;
import io.admin.common.service.CrudService;
import io.api.modules.project.dto.ProjectDTO;
import io.api.modules.project.entity.ProjectEntity;

import java.util.List;
import java.util.Map;

/**
 * 项目表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-12
 */
public interface ProjectService extends CrudService<ProjectEntity, ProjectDTO> {
    PageData<ProjectDTO> page(Map<String, Object> params);

    List<ProjectDTO> list(Map<String, Object> params);

    int countByUserIdAndStatus(Long userId, List<Integer> stateList);

    void examine(Long projectId);
}